projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e92d48
)
fix a leak when using shortnames and no output.
author
tsteven4
<tsteven4@gmail.com>
Fri, 14 Feb 2014 03:09:00 +0000
(
03:09
+0000)
committer
tsteven4
<tsteven4@gmail.com>
Fri, 14 Feb 2014 03:09:00 +0000
(
03:09
+0000)
gpsbabel/waypt.cc
patch
|
blob
|
history
diff --git
a/gpsbabel/waypt.cc
b/gpsbabel/waypt.cc
index 3abaceb048eb2e3367fc076799f7a4b6aabd59cb..27385e3e09aba913953a562428809e383dff0fad 100644
(file)
--- a/
gpsbabel/waypt.cc
+++ b/
gpsbabel/waypt.cc
@@
-180,15
+180,11
@@
waypt_disp(const Waypoint* wpt)
#else
if (wpt->description) {
#endif
- char* tmpdesc = xstrdup(wpt->description);
printf("%s/%s",
global_opts.synthesize_shortnames ?
- mkshort(mkshort_handle, tmpdesc) :
- CSTRc(wpt->shortname),
- tmpdesc);
- if (tmpdesc) {
- xfree(tmpdesc);
- }
+ qPrintable(mkshort(mkshort_handle, wpt->description)) :
+ qPrintable(wpt->shortname),
+ qPrintable(wpt->description));
}
if (wpt->altitude != unknown_alt) {